package com.xsjl.qa;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.xsjl.common.utils.JwtUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableEurekaClient
//用来标识开启服务发现功能, 包含了ureka、consul、zookeepe的实现,上面使用的eureka服务发现,可以省去
// @EnableDiscoveryClient
//用来开启Feign功能
@EnableFeignClients
public class QaApplication {

	public static void main(String[] args) {
		SpringApplication.run(QaApplication.class, args);
	}


	//分页功能
	@Bean
	public PaginationInterceptor paginationInterceptor() {
		return new PaginationInterceptor();
	}

	@Bean
	public JwtUtil jwtUtil() {
		return new JwtUtil();
	}
}
